package com.sphd.beautysalon.presenter;


import com.android.volley.VolleyError;
import com.sphd.beautysalon.info.VipInfo;
import com.sphd.beautysalon.view.RechargeView;
import com.sphd.beautysalon.model.RechargeModelImpl;

import java.util.List;

/**
* Created by Hu on 2017/01/19
*/

public class RechargePresenterImpl implements RechargePresenter{
    RechargeModelImpl rechargeModel;
    RechargeView rechargeView;

    public RechargePresenterImpl(RechargeView rechargeView) {
        this.rechargeView = rechargeView;
        rechargeModel=new RechargeModelImpl();
    }

    @Override
    public void addData(String url) {
        rechargeModel.sendUrl(url,this);
    }

    @Override
    public void sendError(VolleyError error) {

    }

    @Override
    public void recRes(double daytopup, double alltopup, List<VipInfo> vipInfos) {
        rechargeView.recRes(daytopup,alltopup,vipInfos);
    }
}